package com.thf.service;

import com.thf.model.CommonResult;
import com.thf.model.Permission;
import com.thf.model.ResultData;
import com.thf.model.UserModel;

import java.util.List;

public interface AuthService {

    ResultData login(UserModel userModel);

    UserModel getUserByName(String name);

    List<Permission> getPermissionsByUserId(Integer id);

    Permission getPermissionsByUri(String uri);

    CommonResult checkAccessToUri(String uri, String username);
}